package com.zsk.shop.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.Size;
import java.io.Serializable;
import java.util.Date;

/**
 * @author Administrator
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@ApiModel("数据字典")
@TableName("data_dictionary")
public class DataDictionary implements Serializable {
    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(name = "id", value = "主键编号", dataType = "Long")
    private Long id;

    @TableField("`name`")
    @ApiModelProperty(name = "name", value = "参数名称", dataType = "String")
    private String name;

    @TableField("`key`")
    @Size(max = 50,message = "key值限制在50内")
    @ApiModelProperty(name = "key", value = "参数key", dataType = "String")
    private String key;

    @TableField("`value`")
    @Size(max = 50,message = "值长度限制在50内")
    @ApiModelProperty(name = "value", value = "参数值", dataType = "String")
    private String value;

    @ApiModelProperty(name = "remark", value = "备注（预留）", dataType = "String")
    private String remark;
    @ApiModelProperty(name = "remark", value = "备注（预留）", dataType = "String")
    private Boolean isShow;
    @ApiModelProperty(name = "isDeleted", value = "是否删除", dataType = "Boolean")
    private Boolean isDeleted;
    @ApiModelProperty(name = "createUser", value = "创建用户", dataType = "Long")
    private Long createUser;
    @ApiModelProperty(name = "updateUser", value = "修改用户", dataType = "Long")
    private Long updateUser;
    @ApiModelProperty(name = "createTime", value = "创建时间", dataType = "Date")
    private Date createTime;
    @ApiModelProperty(name = "updateTime", value = "修改时间", dataType = "Date")
    private Date updateTime;

    private static final long serialVersionUID = 1L;

}